<?php


namespace app\api\controller;


class Ppxq extends Index
{
        /*
        *品牌中心表中的
         * 品牌详情
        *
         */
        public function index(){
            //查询地址
            $model=new\app\admin\model\Ppxq;
            //查询语句
            $str=$model->join('tplay_nav','tplay_ppxq.nav_id=tplay_nav.id')
                ->field('tplay_ppxq.id,tplay_ppxq.thumb,tplay_ppxq.title,tplay_ppxq.headstram,
                tplay_ppxq.chairman,tplay_ppxq.slogan,tplay_ppxq.http,tplay_ppxq.ds,tplay_ppxq.ppjs,
                 tplay_ppxq.content
                ,tplay_nav.navname')
                ->limit(0,10)
                ->select();
            return json([200,"成功",$str]);
        }
}